package com.gomokult.entity;

import java.sql.Timestamp;
import java.util.Date;

/**
 * 对局类
 * @author 王沛哲
 */
public class Game {
	private int gameID;				//对局编号
	private User userBlack;			//黑棋玩家
	private User userWhite;			//白棋玩家
	private String winner;			//获胜方
	private String piecesSequence;	//落子序列
	private Timestamp date;			//对局日期
	private int blackDuration;		//黑棋用时
	private int whiteDuration;		//白棋用时
	private String blackCounting;	//黑棋得分
	private String whiteCounting;	//白棋得分
	private int likesCount;			//点赞数
	private int commentCount;		//评论数
	
	/**
	 * 无参构造
	 */
	public Game() {
		super();
	}

	/**
	 * 全参构造
	 */
	public Game(int gameID, User userBlack, User userWhite, String winner, String piecesSequence, Timestamp date,
			int blackDuration, int whiteDuration, String blackCounting, String whiteCounting, int likesCount,
			int commentCount) {
		super();
		this.gameID = gameID;
		this.userBlack = userBlack;
		this.userWhite = userWhite;
		this.winner = winner;
		this.piecesSequence = piecesSequence;
		this.date = date;
		this.blackDuration = blackDuration;
		this.whiteDuration = whiteDuration;
		this.blackCounting = blackCounting;
		this.whiteCounting = whiteCounting;
		this.likesCount = likesCount;
		this.commentCount = commentCount;
	}

	
	/**
	 * 缺省构造
	 */
	public Game(User userBlack, User userWhite, String winner, String piecesSequence, Timestamp date, int blackDuration,
			int whiteDuration, String blackCounting, String whiteCounting, int likesCount, int commentCount) {
		super();
		this.userBlack = userBlack;
		this.userWhite = userWhite;
		this.winner = winner;
		this.piecesSequence = piecesSequence;
		this.date = date;
		this.blackDuration = blackDuration;
		this.whiteDuration = whiteDuration;
		this.blackCounting = blackCounting;
		this.whiteCounting = whiteCounting;
		this.likesCount = likesCount;
		this.commentCount = commentCount;
	}

	


	/**
	 * 生成get/set方法
	 */
	public int getGameID() {
		return gameID;
	}


	public void setGameID(int gameID) {
		this.gameID = gameID;
	}

	public User getUserBlack() {
		return userBlack;
	}

	public void setUserBlack(User userBlack) {
		this.userBlack = userBlack;
	}

	public User getUserWhite() {
		return userWhite;
	}

	public void setUserWhite(User userWhite) {
		this.userWhite = userWhite;
	}

	public String getWinner() {
		return winner;
	}

	public void setWinner(String winner) {
		this.winner = winner;
	}

	public String getPiecesSequence() {
		return piecesSequence;
	}

	public void setPiecesSequence(String piecesSequence) {
		this.piecesSequence = piecesSequence;
	}

	public Date getDate() {
		return date;
	}
	

	public int getBlackDuration() {
		return blackDuration;
	}

	public void setBlackDuration(int blackDuration) {
		this.blackDuration = blackDuration;
	}

	public int getWhiteDuration() {
		return whiteDuration;
	}

	public void setWhiteDuration(int whiteDuration) {
		this.whiteDuration = whiteDuration;
	}

	public String getBlackCounting() {
		return blackCounting;
	}

	public void setBlackCounting(String blackCounting) {
		this.blackCounting = blackCounting;
	}

	public String getWhiteCounting() {
		return whiteCounting;
	}

	public void setWhiteCounting(String whiteCounting) {
		this.whiteCounting = whiteCounting;
	}
	
	public void setDate(Timestamp date) {
		this.date = date;
	}


	public int getLikesCount() {
		return likesCount;
	}

	public void setLikesCount(int likesCount) {
		this.likesCount = likesCount;
	}
	
	public int getCommentCount() {
		return commentCount;
	}

	public void setCommentCount(int commentCount) {
		this.commentCount = commentCount;
	}
}
